home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / unarced / languages / c-manual / hintsandtips / example2.c < prev    next >
C/C++ Source or Header  |  1995-03-17  |  404b  |  18 lines

  1. /* Example 2                                                  */
  2. /* This program will print "Hello!" in the CLI window if      */
  3. /* started from CLI, or the text will be printed in a special */
  4. /* window that is automatically opened if run from workbench. */
  5.  
  6. void main();
  7.  
  8. void main()
  9. {
  10.   int loop;  
  11.  
  12.   printf( "Hello!\n" );
  13.  
  14.   /* Wait for a while: */
  15.   for( loop = 0; loop < 500000; loop++ )
  16.     ;
  17. }
  18.